package cn.exrick.xboot.base.dto

import cn.exrick.xboot.core.common.utils.NameUtil
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import javax.validation.constraints.Pattern

@ApiModel("企业员工搜索实体")
data class EnterpriseEmployeeSearchDto(

        @ApiModelProperty(value = "登录名")
        var username: @Pattern(regexp = NameUtil.regUsername, message = "登录账号不能包含特殊字符且长度不能>16") String? = null,

        @ApiModelProperty(value = "手机")
        var mobile: @Pattern(regexp = NameUtil.regMobile, message = "11位手机号格式不正确") String? = null,

        @ApiModelProperty(value = "性别")
        var sex: String? = null,

        @ApiModelProperty(value = "所属部门id")
        var departmentId: String? = null,

        @ApiModelProperty("岗位")
        var jobId: String? = ""
)